package com.zwj.mapper;

import com.zwj.bo.AddClassBo;
import com.zwj.bo.StudentBo;
import com.zwj.bo.StudentById;
import com.zwj.bo.UpdateClassBo;
import com.zwj.dto.SelectClassQuery;
import com.zwj.dto.SelectStudentQuery;
import com.zwj.entity.ClassInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zwj.entity.ClassStudentInfoEntity;
import com.zwj.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 班级信息表 Mapper 接口
 * </p>
 *
 * @author zwj
 * @since 2021-07-21
 */
@Mapper
public interface ClassInfoMapper extends BaseMapper<ClassInfoEntity> {
    ClassInfoEntity getClassInfo(AddClassBo addClassBo);

    ClassInfoEntity getClassInfo1(UpdateClassBo updateClassBo);

    List<Object> selectClass(SelectClassQuery selectClassQuery);

    int addClassStudent(ClassStudentInfoEntity classStudentInfoEntity);

    String selectClassStudent(StudentById studentById);

    int deleteClassStudent(ClassStudentInfoEntity classStudentInfoEntity);

    int addStudent(UserEntity user);

    List<Object> selectStudent(SelectStudentQuery selectStuentQuery);
}
